public class Teacher {
    private String id;
    private String name;
    private String gender;
    private Course course; // 关联的课程

    // 构造方法：初始化教师基本信息
    public Teacher(String id, String name, String gender) {
        this.id = id;
        this.name = name;
        this.gender = gender;
    }

    // 设置教师授课的课程
    public void setCourse(Course course) {
        this.course = course;
    }

    // 获取教师授课的课程
    public Course getCourse() {
        return course;
    }

    // 获取教师ID
    public String getId() {
        return id;
    }

    // 获取教师姓名
    public String getName() {
        return name;
    }

    // 获取教师性别
    public String getGender() {
        return gender;
    }
}
